<?php
namespace app\common\model;

use think\Model;

class CashList extends Model
{

    /*
     *  已提取的
     * */
    public function cashTokenAmount($uid = 0){
        $where = [];
        $where[] = ['status',"=", 1];
        if($uid > 0){
            $where[] = ['uid',"=", $uid];
        }
        return $this->where($where)->sum("token_money");
    }
}